@import '~antd/es/style/themes/default.less';
@import 'styles/index';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

.df {
  display: flex;
}

.flex-center {
  justify-content: center;
  align-items: center;
}
.gNeMwR{
  border: none !important;
  height: 30px !important;
}

/* 扩展ant design pro按钮组件颜色 */
.button-color-dust {
  color: #FFFFFF !important;
  background-color: #F5222D !important;
  border-color: #F5222D !important;

  &:hover, &:focus {
    background-color: #ff4d4f !important;
    border-color: #ff4d4f !important;
  }

  &:active, &.active {
    background-color: #cf1322 !important;
    border-color: #cf1322 !important;
  }
}

.button-color-volcano {
  color: #FFFFFF !important;
  background-color: #FA541C !important;
  border-color: #FA541C !important;

  &:hover, &:focus {
    background-color: #ff7a45 !important;
    border-color: #ff7a45 !important;
  }

  &:active, &.active {
    background-color: #d4380d !important;
    border-color: #d4380d !important;
  }
}

.button-color-sunset {
  color: #FFFFFF !important;
  background-color: #FAAD14 !important;
  border-color: #FAAD14 !important;

  &:hover, &:focus {
    background-color: #ffc53d !important;
    border-color: #ffc53d !important;
  }

  &:active, &.active {
    background-color: #d48806 !important;
    border-color: #d48806 !important;
  }
}

.button-color-cyan {
  color: #FFFFFF !important;
  background-color: #13C2C2 !important;
  border-color: #13C2C2 !important;

  &:hover, &:focus {
    background-color: #36cfc9 !important;
    border-color: #36cfc9 !important;
  }

  &:active, &.active {
    background-color: #08979c !important;
    border-color: #08979c !important;
  }
}

.button-color-green {
  color: #FFFFFF !important;
  background-color: #52C41A !important;
  border-color: #52C41A !important;

  &:hover, &:focus {
    background-color: #73d13d !important;
    border-color: #73d13d !important;
  }

  &:active, &.active {
    background-color: #389e0d !important;
    border-color: #389e0d !important;
  }
}

.button-color-daybreak {
  color: #FFFFFF !important;
  background-color: #1890FF !important;
  border-color: #1890FF !important;

  &:hover, &:focus {
    background-color: #096dd9 !important;
    border-color: #096dd9 !important;
  }

  &:active, &.active {
    background-color: #40a9ff !important;
    border-color: #40a9ff !important;
  }
}

.button-color-geekblue {
  color: #FFFFFF !important;
  background-color: #2F54EB !important;
  border-color: #2F54EB !important;

  &:hover, &:focus {
    background-color: #1d39c4 !important;
    border-color: #1d39c4 !important;
  }

  &:active, &.active {
    background-color: #597ef7 !important;
    border-color: #597ef7 !important;
  }
}

.button-color-purple {
  color: #FFFFFF !important;
  background-color: #722ED1 !important;
  border-color: #722ED1 !important;

  &:hover, &:focus {
    background-color: #9254de !important;
    border-color: #9254de !important;
  }

  &:active, &.active {
    background-color: #531dab !important;
    border-color: #531dab !important;
  }
}
